# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bfbtester
pkgver=2.1.0
pkgrel=1
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='Perform checks of single and multiple argument command line overflows and environment variable overflows.'
arch=('x86_64' 'aarch64')
url='https://sourceforge.net/projects/bfbtester/'
license=('GPL-2.0-or-later')
source=("https://github.com/Obsidian-Covenant/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('4a6466bb3ee4ec9ae5dccd8ab65a84db632029e7c90f6b9821d1943318721d20c74363c9c8b3c1efd21cdc425709265490379f7caeba6045538bd68ee53ece08')

build() {
  cd "$pkgname-$pkgver"

  autoreconf -i
  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

